home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.1 (Developer) [x86]
/
NeXT Step 3.1 Intel dev.cdr.dmg
/
NextDeveloper
/
Makefiles
/
app
/
subproj.make
< prev
Wrap
Text File
|
1993-04-01
|
3KB
|
63 lines
#
# subproj.make
#
# Inputs from Makefile.preamble (no defaults):
# OTHER_CFLAGS - Flags passed to compiler (in addition to -g, -O, etc.)
# OTHER_OFILES - Additional relocatables that may be linked in
# OTHER_PRODUCT_DEPENDS - Other dependencies of this project
# OTHER_SOURCEFILES - Other source files maintained by .pre/postamble
# OTHER_GARBAGE - Additional files to be removed by make 'clean'
#
# MSGFILES - .msg files that should have msgwrap run on them
# DEFSFILES - .defs files that should have mig run on them
# MIGFILES - .mig files (no .defs files) that should have mig run on them
#
# PRECOMPS - Precompiled headers that should be built before compilation
# OTHER_INITIAL_TARGETS - Targets to be built before subprojects, etc.
#
# Inputs from Makefile.postamble (with defaults set in common.make):
# MAKEFILES - Makefiles this project depends on (default = Makefile)
#
# Inputs from Makefile (avoid setting these, ProjectBuilder controls them):
# NAME - name of application
# LANGUAGE - langage in which the project is written (default "English")
# LOCAL_RESOURCES - localized resources (e.g. nib's, images) of project
# GLOBAL_RESOURCES - non-localized resources of project
#
# CLASSES - Class implementation files in project.
# HFILES - Header files in project.
# MFILES - Other Objective-C source files in project.
# CFILES - Other C source files in project.
# PSWFILES - .psw files in the project
# PSWMFILES - .pswm files in the project
# SUBPROJECTS - Subprojects of this project
# BUNDLES - Bundle subprojects of this project
# OTHERSRCS - Other miscellaneous sources of this project
# OTHERLINKED - Source files not matching a standard source extention
# OTHERLINKEDOFILES - Other relocatable files to (always) link in
# APP_MAKEFILE_DIR - Directory in which to find generic set of Makefiles
# MAKEFILEDIR - Directory in which to find $(MAKEFILE)
# MAKEFILE - Top level mechanism Makefile (e.g., app.make, bundle.make)
#
APP_MAKEFILE_DIR = /NextDeveloper/Makefiles/app
include $(APP_MAKEFILE_DIR)/common.make
DOTO = $(SUBPROJ_OFILE_DIR)/$(NAME:.subproj=_subproj.o)
project:: $(INITIAL_TARGETS) subprojs bundles resources $(DOTO)
$(DOTO): $(PRODUCT_DEPENDS)
@(if [ "`$(ECHO) $(OFILES) | wc -w`" != " 0" ] ; then \
$(ECHO) $(CC) $(ALL_CFLAGS) -nostdlib $(OFILES) $(OTHER_OFILES) -r -o $(DOTO) ; \
$(CC) $(ALL_CFLAGS) -nostdlib $(OFILES) $(OTHER_OFILES) -r -o $(DOTO) ; \
else \
$(ECHO) Warning: Building empty subproject... ; \
$(TOUCH) $(DOTO:.o=.c) ; \
$(CC) $(ALL_CFLAGS) -c $(DOTO:.o=.c) -o $(DOTO) ; \
$(RM) $(DOTO:.o=.c) ; \
fi)
depend:: Makefile.dependencies $(SUBPROJECTS:.subproj=.depend) $(BUNDLES:.bproj=.depend)